-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
examples: Interpolation tutorial notebook #2252
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2252 +/- ##
=======================================
Coverage 79.41% 79.41%
=======================================
Files 232 232
Lines 43578 43578
Branches 8072 8072
=======================================
Hits 34606 34606
Misses 8215 8215
Partials 757 757 ☔ View full report in Codecov by Sentry. |
examples/userapi/03_subdomains.ipynb
Outdated
@@ -432,15 +432,7 @@ | |||
"cell_type": "code", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e5ca4c1
to
899dcf5
Compare
@@ -0,0 +1,617 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall needs a lot comments to be more "educational", then we could have another iteration
injection
that inject values at one or more given sparse positions (i.e point sources)interpolation
that reads the value of a field at one or more given sparse positions (i.e point measurments)
Reply via ReviewNB
@@ -0,0 +1,617 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,617 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment like: Some variable declarations
introduce diff between f and u (what is save)
Reply via ReviewNB
@@ -0,0 +1,617 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much needed PR, added some comments
899dcf5
to
1d91031
Compare
@@ -0,0 +1,630 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,630 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #2. ax.imshow(u.data[1], vmin=0, vmax=1, cmap="jet", extent=[0,1,0,1])
Missing plt.show()
Reply via ReviewNB
@@ -0,0 +1,630 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #2. ax.imshow(u.data[1], vmin=0, vmax=2, cmap="jet", extent=[0,1,0,1])
Missing a plt.show()
Reply via ReviewNB
b5c8c46
to
0c48414
Compare
@@ -0,0 +1,965 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,965 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #3. coords = np.random.rand(npoint, 2)/2 + .25
Do you need to set a seed here? Otherwise this is going to be non-deterministic
Reply via ReviewNB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that's intentional. This way, you can see different scenarios (overlap, ...) when user runs it
@@ -0,0 +1,965 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"a Devito object, representing a"
"and the data at those positions"
"is the dimensionality of the Grid
"
Remove the first "at the sparse positions"
Reply via ReviewNB
@@ -0,0 +1,965 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,965 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,965 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,965 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #3. ax.imshow(u.data[1], vmin=0, vmax=1, cmap="jet", extent=[0,1,0,1])
A colourbar is needed here
Reply via ReviewNB
@@ -0,0 +1,965 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,965 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #11. ax.set_title("Off the grid sparse positions")
"Off-grid sparse positions"
Reply via ReviewNB
@@ -0,0 +1,965 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #3. ax.imshow(u.data[1], vmin=0, vmax=2, cmap="jet", extent=[0,1,0,1])
A colourbar is needed here
Reply via ReviewNB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with this now
@@ -0,0 +1,889 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how helpful this figure is.
Could be better probably with less points, to see understand weights better
Reply via ReviewNB
@@ -0,0 +1,889 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.